package myown

fun main() {
    val actuator= CActuator<MutableList<String>>(mutableListOf())

    actuator.next(StringIterator("first"))
        .next(StringIterator("second"))
        .next(StringIterator("third"))
        .next(StringIterator("forth"))
        .proceed(object : CActuator.ResultListener{
            override fun onSuccess() {
                println("success")
            }

            override fun onFail() {
                println("fail")
            }

            override fun onCancel() {
                println("cancel")
            }

        })
}